<!--
Copyright 2017 The Kubernetes Authors.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<kd-content-card>
  <kd-content>
    <kd-resource-card-list selectable="false"
                           with-statuses="false">
      <kd-resource-card-list-header>
        <kd-resource-card-list-title>
          [[Capacity|Persistent volume claim's capacity list.]]
        </kd-resource-card-list-title>
      </kd-resource-card-list-header>

      <kd-zero-state ng-if="!$ctrl.capacity">
        <kd-zero-state-text>
          [[No capacity has been assigned to this resource.|Text for pods card list zerostate.]]
        </kd-zero-state-text>
      </kd-zero-state>
      <kd-resource-card-header-columns ng-show="$ctrl.capacity">
        <kd-resource-card-header-column size="small"
                                        grow="2">
          [[Resource name|Persistent volume claim's resource name displayed on capacity list.]]
        </kd-resource-card-header-column>
        <kd-resource-card-header-column size="small"
                                        grow="2">
          [[Quantity|Persistent volume claim's quantity displayed on capacity list.]]
        </kd-resource-card-header-column>
      </kd-resource-card-header-columns>

      <kd-resource-card-columns ng-repeat="(key, value) in ::$ctrl.capacity">
        <kd-resource-card-column class="kd-capitalize">{{key}}</kd-resource-card-column>
        <kd-resource-card-column>{{value}}</kd-resource-card-column>
      </kd-resource-card-columns>
    </kd-resource-card-list>
  </kd-content>
</kd-content-card>
